package com.server.impl;

import com.dao.admin.AdminMapper;
import com.pojo.Admin;
import com.server.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements AdminService {

    @Resource
    AdminMapper adminMapper;
    @Override
    public Admin getLoginAdmin(String name, String password) {
        return adminMapper.getLoginAdmin(name, password);
    }

    @Override
    public Admin findAdminByLoginName(String name) {
        return adminMapper.findAdminByLoginName(name);
    }
}
